package com.woniu.controller.homepage;

import com.woniu.service.homePage.IUsersInfoService;
import com.woniu.util.ResData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 周权
 * @data 2023/3/13 17:12
 */
@RestController
@RequestMapping("/app")
public class UsersInfoController {
    @Autowired
    IUsersInfoService usersInfoService;

    /*查询用户会员等级*/
    @RequestMapping("/queryUserLevel")
    public ResData<?> queryUsersLevel(String phone){
        return usersInfoService.queryUsersLevel(phone);
    }

    /*根据 手机号展示个人资料信息*/
    @RequestMapping("/getUserInfoByPhone")
    public ResData<?> getUserInfoByPhone(String phone){
        return usersInfoService.getUserInfoByPhone(phone);
    }
}
